import {lazy} from "react";
import {createRoutes} from "@/routes/guard";

const SystemManagement = lazy(() => import("@/pages/system_management"));
const SystemCateGory = lazy(
  () => import("@/pages/system_management/system_category"),
);
const GuideCategory = lazy(
  () => import("@/pages/system_management/guide_category"),
);

// 路由配置
export const routes = createRoutes([
  {
    path: "system_management",
    element: <SystemManagement />,
    handle: {
      children: [
        {
          path: "system_category",
        },
        {
          path: "guide_category",
        },
      ],
    },
    children: [
      {
        path: "system_category",
        element: <SystemCateGory />,
      },
      {
        path: "guide_category",
        element: <GuideCategory />,
      },
    ],
  },
]);
